<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta http-equiv="Expires" content="0">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Cache" content="no-cache">
  <title>扫码下载</title>
</head>

<style>
  *, body {
    margin: 0;
    padding: 0;
  }

  .scan {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .scan img {
    width: 150px;
    height: 150px;
  }

  .scan p {
    margin-top: 20px;
    font-size: 16px;
    color: #333333;
  }
</style>


<body>
  <div class="scan">
    <img src="" alt="">
    <p>管理端 APP 下载</p>
  </div>
</body>


<script type="module">
  // download_test.png -> https://test.cxplayer.com/url/download.html
  // download_www.png -> https://www.cxplayer.com/url/download.html
  let data = {
    img_url: document.domain.includes('test.') ? './assets/download_test.png' : './assets/download_www.png',
  };

  function init() {
    const elem = document.querySelector('img');
    elem.setAttribute('src', data.img_url);
  }

  init();
</script>
</html>
